package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 业主维修记录对象 tmc_maintenance_attach
 *
 * @author ruoyi
 * @date 2021-04-07
 */
public class TmcMaintenanceAttach extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 维修记录ID */
    @Excel(name = "维修记录ID")
    private Long maintenanceId;

    /** 类型0上报，1完成 */
    @Excel(name = "类型0上报，1完成")
    private Long attachtype;

    /** 附件路径 */
    @Excel(name = "附件路径")
    private String attachurl;
    /** 附件路径 */
    @Excel(name = "文件类型（0视频/1图片）")
    private int isVideo;
    /** 附件路径 */
    @Excel(name = "創建時間")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;

    public int getIsVideo() {
        return isVideo;
    }

    public void setIsVideo(int isVideo) {
        this.isVideo = isVideo;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Long getId()
    {
        return id;
    }
    public void setMaintenanceId(Long maintenanceId)
    {
        this.maintenanceId = maintenanceId;
    }

    public Long getMaintenanceId()
    {
        return maintenanceId;
    }
    public void setAttachtype(Long attachtype)
    {
        this.attachtype = attachtype;
    }

    public Long getAttachtype()
    {
        return attachtype;
    }
    public void setAttachurl(String attachurl)
    {
        this.attachurl = attachurl;
    }

    public String getAttachurl()
    {
        return attachurl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("maintenanceId", getMaintenanceId())
                .append("attachtype", getAttachtype())
                .append("attachurl", getAttachurl())
                .append("createtime", getCreatetime())
                .toString();
    }
}